package com.keta.foundation.service;

import java.util.List;

import com.keta.foundation.entity.User;
import com.keta.foundation.util.dwz.Page;

public interface UserService {

	long getUserCount();

	List<User> getAll();

	List<User> getAll(Page page);

	User getByUsername(String userName);

	List<User> getByOrganizationId(Long organizationId);

	void saveOrUpdate(User user);

	User get(Long userId);

	void delete(Long id);

	void restPassword(User user, String newPassword);
	
	boolean validPasswrod(User user,String password);

	void updateStatus(User user);
}
